package com.just.employment.controller;


import com.just.employment.utils.FileUploads;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import java.io.File;
import java.util.UUID;

@Controller
@RequestMapping("/image")
public class UserController {
    FileUploads fileUploads;
    /**
     * 文件上传
     * @return
     */
    @RequestMapping("/fileupload")
    public String fileuoload2(HttpServletRequest request, MultipartFile upload) throws Exception {
        fileUploads.fileUploads(upload,request);

        return "success";
    }

}
